# -*- coding:utf8 -*-

import urllib.request
from bs4 import BeautifulSoup

# 链接地址解析-------------------------------------------------------------------------
url = "http://www.gaosan.com/gaokao/43980.html"

HttpResponseObject = urllib.request.urlopen(url)
# print(HttpResponseObject)
strHtml=HttpResponseObject.read()
soup = BeautifulSoup(strHtml.decode('utf-8'), "lxml")

# 找到第一层标签------------------------<table width="580px" align="center">------------------------------------------------
data = soup.find_all("table", {"width":"580px", "align":"center"} )
                                    # find_all返回满足条件的【所有】结果
                                    # find返回满足条件的【第1个】结果
# print(data)
# quit()

for data1 in data:
    # print(data1)
    # continue
    for tr in data1:        #tr标签
        # print(tr)
        # print("===========================================")
        # continue
        i = 0
        list0=[]
        for td in tr:       #td标签
            i = i + 1
            if (i > 1):
                print(td.text)


# list0.append(td.text)
# print(list0)